#pragma once

#include "Framework/CommonHead.h"
#include "Widgets/Widget.h"
#include "FunctionPositionerWidget.m.h"


//allow arrange children's position and size by function
RCLASS()
class WHENGINE_API  RFunctionPositionerWidget :public RWidget
{
    ROBJECT
public:         
    //arrange children's position AND size by function
    //children's children will be auto arranged
    TDelegate<void> ArrangeChildrenFunction;

protected:
    virtual void CalculateChildrenPresentPositionAndSize() override;
};